package com.ankang.art.mapper;

import com.ankang.art.dto.JudgesDto;
import com.ankang.art.pto.JudgesPto;
import com.ankang.art.vo.Examinee;
import com.ankang.art.vo.Judges;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Author:
 * Date:2020/3/17    19:42
 */
@Mapper
@Component
public interface JudgesMapper {

    void deleteJudges(String name);

    List<Judges>  getJudges(@Param("name")String name, @Param("status")String status, @Param("schoolName")String schoolName);

    void updateJudges( JudgesDto judgesDto);

    void savaJudges(JudgesPto judgesPto);

    Judges login(@Param("name")String name, @Param("password")String password);

    List<Examinee> getExamineess();

    Integer getTeacher(int id);

    void getAvg1(@Param("resuolt1")Integer resuolt1,@Param("id")int id);
    void getAvg2(@Param("resuolt2")Integer resuolt2,@Param("id")int id);
    void getAvg3(@Param("resuolt3")Integer resuolt3,@Param("id")int id);
    void getAvg4(@Param("resuolt4")Integer resuolt4,@Param("id")int id);
    void getAvg5(@Param("resuolt5")Integer resuolt5,@Param("id")int id);
    void getAvg6(@Param("resuolt6")Integer resuolt6,@Param("id")int id);
    void getAvg7(@Param("resuolt7")Integer resuolt7,@Param("id")int id);
    void getAvg8(@Param("resuolt8")Integer resuolt8,@Param("id")int id);
    void getAvg9(@Param("resuolt9")Integer resuolt9,@Param("id")int id);
    void getAvg10(@Param("resuolt10")Integer resuolt10,@Param("id")int id);

    Float getAvg(@Param("id")Integer id);

    List<String> getTeachers(Integer testId);

    List<Judges>   getExamTeachers();

    void  addExamTeachers(@Param("id")Integer id ,@Param("testId")Integer testId);

    void setStatus(Integer id);

    void beginTest(Integer testId);

    void setInfo(Examinee examinee);

    Integer getResultId(String name);
}
